package com.xrjsj.stage.util;

import java.util.Calendar;
import java.util.Date;

/**
 * @author xurong
 * @since 2018/10/1 下午11:33
 */
public class DateUtil {

    public static Date getDayFromNow(Date date,int days){
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);
        cal.add(Calendar.DATE, days);
        cal.set(Calendar.AM_PM, 0);
        cal.set(Calendar.HOUR, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        return cal.getTime();
    }
}
